<?php
/**
 * Description: 修改
 * Created by PhpStorm.
 * User: congyukun
 * Date: 2021/3/4
 * Time: 16:50
 */

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';


$start = time();
//$page = 1;
//$pageSize = 1000;
//$list = [];
//$data['new_keywords'] = '沙发,北欧,装修';
$yesterday = date("Y-m-d 01:00:00", strtotime("-1 day"));
$data['update_time'] = $yesterday;
\Biz\model\brand\BrandContentKeywords::update($data,['id[>]'=>1]);
//\Biz\model\Brand\BrandContentKeywords::delete(['id'=>12]);

$end = time();
var_dump(date('Y-m-d-H-i-s') . '更新,总耗时:' . ($end - $start) . '秒，' . (($end - $start) / 60) . '分');
